package com.bean;


import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Data
@Component

public class User03 {
    @Value("1")
    public String number;
    @Value("123")
    public String password;
    @Value("1")
    public String  identity;
    public User03(String number, String password, String identity) {
        this.number = number;
        this.password = password;
        this.identity = identity;
    }
    public User03() {
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getIdentity() {
        return identity;
    }

    public void setIdentity(String identity) {
        this.identity = identity;
    }


    public String toString() {
        return "用户注册成功！"+"\n"+
                "number="+number+"，password="+password+
                "，identity="+identity;
    }


}
